package com.es.mapper;

import com.es.entity.StudentDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 描述:
 * es-meta-
 *
 * @author Derek
 * @create 2021-11-29 11:04
 */
public interface StudentMapper {
    /**
     * @param student
     * @return
     */
    int save(StudentDO student);

    /**
     * @param student
     * @return
     */
    int update(StudentDO student);

    /**
     * @param id
     * @return
     */
    int delete(@Param("id") Integer id);

    /**
     * @param id
     * @return
     */
    StudentDO get(@Param("id") Integer id);

    /**
     * @return
     */
    List<StudentDO> list();
}
